package com.example.demo.controller;

import com.example.demo.entity.Category;
import com.example.demo.entity.Information;
import com.example.demo.mapper.CategoryMapper;
import com.example.demo.mapper.InformationMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/getInformation")
public class InformationController {

    @Resource
    InformationMapper informationMapper;
    @GetMapping("/getInformation")
    public List<Information> getImage(){
        return informationMapper.findAll();
    }
}
